﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kaskelot.SP.Model.Domain
{
    public static class FaltTyp
    {
        public static string UserControlForTyp(Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp typ)
        {
            switch (typ)
            {
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Flerval:
                    return "Flerval.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Datum:
                    return "Datum.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Enkelval:
                    return "Enkelval.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Textrad:
                    return "Textrad.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Textyta:
                    return "Textyta.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Personnummer:
                    return "Personnummer.ascx";
                case Stockholm.SOA.Kaskelot.WCF.DataContracts.FaltTyp.Epostadress:
                    return "Mailadress.ascx";
                default: 
                    return string.Empty;
            }
        }
    }
}
